package com.company;

public class MyThread extends Thread{
    @Override
    public void run() {
        for(int i = 0;i<20;i++){
            System.out.println("Thread one :"+i);

            try {
                MyThread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
